/* QtLua -- Lua bindings for Qt
   Copyright (C) 2011, Jarek Pelczar

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General
   Public License along with this library; if not, write to the
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301 USA

*/

#ifndef QLUABREAKPOINTDATA_P_H
#define QLUABREAKPOINTDATA_P_H

#include <QSharedDataPointer>
#include <QVariant>

class QLuaBreakpointDataData;

class QLuaBreakpointData
{
public:
    QLuaBreakpointData();
    QLuaBreakpointData(const QLuaBreakpointData &);
    QLuaBreakpointData &operator=(const QLuaBreakpointData &);
    ~QLuaBreakpointData();

    bool isValid() const;

    qint64 id() const;
    void setId(qint64 id);

    qint64 scriptId() const;
    void setScriptId(qint64 id);

    QString fileName() const;
    void setFileName(QString);

    int lineNumber() const;
    void setLineNumber(int);

    bool isEnabled() const;
    void setEnabled(bool);

    bool isSingleShot() const;
    void setSingleShot(bool singleShot);

    int ignoreCount() const;
    void setIgnoreCount(int);

    QVariant data() const;
    void setData(QVariant);

    int hitCount() const;

private:
    QSharedDataPointer<QLuaBreakpointDataData> d;
};

#endif // QLUABREAKPOINTDATA_P_H
